package com.zoe.app.plugins.order;

import com.zoe.app.domain.Order;
import com.zoe.app.plugins.BasePlugin;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author zbg
 * @date 2023/06/06
 * @description
 */
@Slf4j
@Component
public class MessagePlugin implements BasePlugin {
    @Override
    public void handleModel(Order order) {
        log.info("调用SMS服务 --> {}", order);
    }

    @Override
    public boolean supports(Order order) {
        return true;
    }
}
